package rab.security.trap;

import android.app.AlertDialog;
import android.app.ListActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
import android.Manifest.permission;
import android.content.Intent;
import android.content.Context;
import android.content.pm.*;
//import android.content.pm.ResolveInfo;
//import  android.content.pm.PackageInfo;
//import android.content.pm.PackageManager;
//import android.content.pm.ApplicationInfo;
import android.content.ContentResolver;
import android.content.Intent;
import android.net.Uri;
import android.app.Activity;
import android.app.PendingIntent;
import android.telephony.gsm.SmsManager;
import android.util.Log;
import android.content.BroadcastReceiver;
import android.app.Service;
import android.os.IBinder;


import java.util.Iterator;
import java.util.List;
import java.util.ArrayList;

//public class MyService extends Service {
//	private static final String TAG = "MyService";
//	@Override
//	public IBinder onBind(Intent intent) {
//		return null;
//	}

public class myContactReceiver extends BroadcastReceiver {
//	@Override
//	public IBinder onBind(Intent intent) { 
//		return null;
//	}

    @Override
    public void onReceive(Context context, Intent intent) {
        Bundle extras = intent.getExtras();
		Log.w("DEBUG", "Receiver called MyContactRecevier");
 //       AlertDialog.Builder builder = new AlertDialog.Builder(myContactReceiver.this);
//        AlertDialog.Builder builder = new AlertDialog.Builder(FruitListActivity.this);
 //               builder.setTitle("In on Receive").setMessage("hi")
  //      .setCancelable(false).setPositiveButton("Ok", null);
        /*
         * Create and show the model AlertDialog.
         */
//        builder.create().show();

		if (isOrderedBroadcast()) {
			abortBroadcast();
    	}
     }
}

